package com.example.backend.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "llm")
public class LlmConfig {

    private OpenAI openai = new OpenAI();
    private Custom custom = new Custom();

    @Data
    public static class OpenAI {
        private String apiKey;
        private String apiBaseUrl;
        private String model;
        private Integer maxTokens;
        private Double temperature;
    }

    @Data
    public static class Custom {
        private String apiUrl;
        private String apiKey;
    }
}
